package com.demo.jfinal.job;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.log4j.Logger;

import com.core.sgip.server.SGIPReceiveServer;
import com.jfinal.plugin.IPlugin;

public class SGIPRequestServiceStartPlugin implements IPlugin {

	private static Logger logger = Logger.getLogger(SGIPRequestServiceStartPlugin.class);
	
	
	public boolean start() {

		SGIPReceiveServer.getInstance().startSGIPService();
		logger.debug(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + ": SGIPReceiveServer service 启动成功");
		
		return true;
	}

	public boolean stop() {
		return true;
	}

}
